package com.zbkj.dal.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel
public class DeliveryNodeDTO {

    @ApiModelProperty(value = "节点状态", example = "DELIVERY_PENDING")
    private String nodeStatus;

    @ApiModelProperty(value = "节点状态描述", example = "发货中")
    private String nodeStatusDesc;

    @ApiModelProperty(value = "节点时间", example = "2024-01-01 10:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime nodeTime;

    @ApiModelProperty(value = "节点详情", example = "您的包裹已送货上门，放至家门口。服务由菜鸟驿站[上海天钥桥路69弄科汇小区店]服务。如有问题可致电15221182619。期待再次为您服务。")
    private String nodeItem;
}
